#include "Rp2WireframeState.h"
#include "Rp2Renderer.h"

using namespace Rp2;

//---------------------------------------------------------------------------------------------------
void Renderer::SetWireframeState(WireframeState* pkWireframeState)
{
    m_aspkState[GlobalState::WIREFRAME] = pkWireframeState;

	if (pkWireframeState->Enabled)
	{
		glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
	}
	else
	{
		glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
	}
}
//---------------------------------------------------------------------------------------------------